#include "config.h"



#ifdef TEMP_AND_HUMI_FUNCTION

SHT30_DEVICE SHT30(DEV_SHT30_ADDRESS,DEV_SHT30_I2C_NUM);

void SHT30_Task(void*arg)
{
	SHT30.periodicStart(SHT3XD_REPEATABILITY_LOW,SHT3XD_FREQUENCY_HZ5);

    printf("\nSHT30 Task ok!\n");

	while (true)
	{
		SHT30.periodReadData();
		printf("Temp = %4.2f ℃\n",SHT30.Temp);
		printf("Humi = %4.2f %%RH\n",SHT30.Humi);

		vTaskDelay(2100/portTICK_RATE_MS);

	}
	

}
#endif